/* 通用样式 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

ul {
	list-style: none;
}

/* 全局变量和公共样式 */
.w {
	width: var(--w);
	margin: 0 auto;
}

.tongan {
	min-width: var(--w);
}

:root {
	--w: 1230px;
	--h: 600px;
	--primary-color: #666;
	--secondary-color: #80c2cc;
	--accent-color: #ff6700;
	--light-gray: #f5f5f5;
	--medium-gray: #e0e0e0;
	--dark-gray: #333;
	--font-family: 'Open Sans', sans-serif;
}

html {
	scroll-behavior: smooth;
	background-color: var(--light-gray);
	font-family: var(--font-family);
}

/* 头部样式 */
.top-bar {
	height: 40px;
	background: linear-gradient(to bottom, var(--primary-color), #555);
	display: flex;
	align-items: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
}

.top-nav-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}

/* 导航条左边 */
.top-nav-left {
	margin: 0 20px;
	float: left;
}

.top-nav-left>ul {
	display: flex;
	height: 100%;
}

.top-nav-left>ul>li {
	margin-right: 20px;
}

.top-nav-left a {
	line-height: 40px;
	text-decoration: none;
	color: var(--secondary-color);
	font-size: 12px;
	transition: color 0.3s ease;
	font-weight: 600;
}

.top-nav-left a:hover {
	color: var(--accent-color);
}

/* 导航条右边 */
.top-nav-right {
	margin: 0 20px;
	float: right;
}

.top-nav-right>ul {
	display: flex;
	align-items: center;
	height: 100%;
}

.top-nav-right>ul>li {
	position: relative;
	margin-left: 20px;
	vertical-align: middle;
	color: var(--secondary-color);
}

.top-nav-right a {
	line-height: 40px;
	text-decoration: none;
	color: var(--secondary-color);
	font-size: 12px;
	transition: color 0.3s ease;
	font-weight: 600;
}

.top-nav-right a:hover {
	color: var(--accent-color);
}

.top-nav-right>ul>span {
	display: inline-block;
	height: 20px;
	border-left: 1px solid var(--dark-gray);
	margin: 0 10px;
	vertical-align: middle;
}

.right-img {
	width: 180px;
	position: absolute;
	border: 1px solid var(--medium-gray);
	top: 100%;
	left: -50%;
	display: none;
	background-color: #fff;
	text-align: center;
	z-index: 99;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	padding: 10px;
	transition: opacity 0.3s ease;
}

.top-nav-right img {
	width: 80%;
	height: auto;
	margin-top: 10px;
}

.top-nav-right p {
	font-size: 12px;
	line-height: 160%;
	margin-top: 5px;
}

.top-nav-right>ul>li:hover .right-img {
	display: block;
	opacity: 1;
}

.list-title {
	position: relative;
}

.list-title:hover .list-wrapper {
	display: block;
}

.list-wrapper {
	position: absolute;
	top: 100%;
	right: -10%;
	width: 300px;
	background-color: #fff;
	z-index: 10000;
	display: none;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	padding: 10px;
	transition: opacity 0.3s ease;
}

.list-wrapper img {
	width: 30%;
	height: auto;
	float: left;
	margin-right: 10px;
}

.list-wrapper div span {
	display: block;
	margin-bottom: 5px;
}

.list {
	clear: both;
	margin-top: 10px;
}

.list li {
	margin-bottom: 5px;
}

.list li a {
	display: block;
	color: var(--dark-gray);
	padding: 5px;
	transition: background-color 0.3s ease;
}

.list li a:hover {
	background-color: var(--medium-gray);
}

/* 第二部分 */
.nav-bar {
	height: 80px;
	background-color: #fff;
	position: relative;
	box-sizing: border-box;
	padding: 20px 0;
	margin-top: 40px;
}

/* logo */
.nav-logo {
	height: 80%;
	width: auto;
	float: left;
}

.nav-logo img {
	height: 50px;
	width: 116px;
	background-size: auto 50px;
	margin-left: 20px;
}

/* 搜索框 */
.search {
	float: right;
	margin-top: -10px;
}

.search>input {
	height: 50px;
	width: 300px;
}

.search>button {
	width: 50px;
	height: 50px;
	background-color: #fff;
	border: 1px solid var(--medium-gray);
	cursor: pointer;
	transition: all 0.3s ease;
}

.search>button:hover {
	background-color: var(--accent-color);
	color: white;
	border: 1px solid var(--accent-color);
}

/* 一级菜单 */
.menu-wrapper-left {
	float: left;
	height: 50px;
}

.menu-wrapper-left>ul {
	height: 100%;
	box-sizing: border-box;
	margin-left: 20px;
	display: flex;
}

.menu-wrapper-left>ul>li {
	display: inline-block;
	padding: 10px 0;
	text-align: center;
}

.menu-wrapper-left>ul>li:hover {
	border-bottom: 5px solid var(--accent-color);
	color: var(--accent-color);
}

.menu-wrapper-left>ul>li>a:hover {
	color: var(--accent-color);
}

.menu-wrapper-left a {
	display: block;
	margin: 0 10px;
	font-size: 14px;
	text-decoration: none;
	color: var(--dark-gray);
}

.menu-wrapper-left div {
	position: absolute;
	width: 100%;
	top: 100%;
	left: 0;
	height: 0;
	overflow: hidden;
	background-color: #fff;
	transition-property: height, border;
	transition-duration: 0.4s;
	z-index: 1111111111111111111111111111111111111111;
}

/* 二级菜单 */
ul.menu-main {
	font-size: 0;
	height: 0;
	box-sizing: border-box;
}

ul.menu-main>li {
	width: calc(100% / 5);
	box-sizing: border-box;
	display: inline-block;
}

ul.menu-main>li>a>p {
	font-size: 10px;
	color: var(--dark-gray);
}

ul.menu-main>li>a>img {
	height: auto;
	width: 50%;
}

.menu-wrapper-left>ul>li:hover>div {
	height: 170px;
	border: 1px solid var(--medium-gray);
	border-top: none;
	z-index: 11111111111111111111111;
}

.menu-wrapper-right {
	float: right;
	height: 50px;
	margin-right: 10px;
}

.menu-wrapper-right>ul {
	height: 100%;
	box-sizing: border-box;
	margin-left: 20px;
	display: flex;
}

.menu-wrapper-right>ul>li {
	display: inline-block;
	padding: 10px 0;
	text-align: center;
}

.menu-wrapper-right>ul>li:hover {
	color: var(--accent-color);
}

.menu-wrapper-right>ul>li>a:hover {
	color: var(--accent-color);
}

.menu-wrapper-right a {
	display: block;
	margin: 0 10px;
	font-size: 14px;
	text-decoration: none;
	color: var(--dark-gray);
}

.menu-wrapper-right>ul::before {
	content: "";
	height: 100%;
	border: 1px solid var(--medium-gray);
	margin-right: 5px;
}

/* 第三部分 */
.menu-sub-container {
	position: relative;
}

.menu-sub-container>div {
	height: 100%;
}

.menu-sub-img img {
	width: 100%;
	height: auto;
}

.menu-sub {
	position: absolute;
	top: 0;
	left: 10%;
	height: 100%;
}

.menu-sub-wrapper {
	height: 100%;
	width: 176px;
}

.menu-sub-wrapper>ul {
	height: 100%;
	width: 100%;
	padding: 20px 0;
	background-color: rgba(0, 0, 0, 0.5);
	border: 1px solid black;
	position: relative;
}

.menu-sub-wrapper>ul>li {
	height: calc(100% / 7);
	vertical-align: middle;
	font-size: 0;
	box-sizing: border-box;
	color: #fff;
	padding: 0 10px;
}

.menu-sub-wrapper>ul>li:hover {
	color: var(--accent-color);
}
.menu-sub-title {
	color: whitesmoke;
	display: inline-block;
	width: 100%;
	vertical-align: middle;
	text-align: justify;
	transition: all 0.3s ease;
	padding: 20px 10px; /* 增大上下内边距为 20px，左右保持 10px */

}

.menu-sub-title a {
	font-size: 20px; /* 设置 <a> 标签内文字的初始大小 */
	color: inherit; /* 继承 .menu-sub-title 的文字颜色 */
	text-decoration: none; /* 去除下划线 */
	display: block; /* 将 <a> 标签设置为块级元素 */
	text-align: center; /* 文字水平居中 */
}

.menu-sub-title:hover {
	color: var(--accent-color);
	background-color: var(--light-gray);
	border: 2px solid white; /* 添加白色边框，边框宽度为 2px */
	border-radius: 10px; /* 设置边框圆角为 10px */
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2),
	0 5px 15px rgba(0, 0, 0, 0.15),
	0 -5px 15px rgba(0, 0, 0, 0.15);
	font-size: 18px; /* 鼠标悬停时字体变大，可以根据实际情况调整 */
	padding: 15px; /* 鼠标悬停时内边距增大，使背景范围更大 */
}
.menu-sub-title>* {
	display: inline-block;
	font-size: 14px;
}

.menu-sub-wrapper>ul>li::before {
	content: "";
	height: 100%;
	display: inline-block;
	vertical-align: middle;
}

.menu-sub-title::after {
	content: "";
	display: inline-block;
	width: 100%;
}

/* 二级菜单 */
.menu-sub-title>ul {
	position: absolute;
	top: 0;
	left: 100%;
	height: 100%;
	font-size: 0;
	writing-mode: vertical-lr;
	display: none;
	border: 1px solid var(--medium-gray);
	background-color: #fff;
}

.menu-sub-title>ul>li {
	display: inline-block;
	height: calc(100% / 3);
	writing-mode: horizontal-tb;
}

.menu-sub-title>ul>li>a {
	display: block;
	height: 100%;
	box-sizing: border-box;
	cursor: pointer;
}

.menu-sub-title>ul>li>a>div {
	display: inline-block;
	height: 100%;
	width: 200px;
	box-sizing: border-box;
	vertical-align: middle;
	padding: 20px;
}

.menu-sub-title img {
	height: 100%;
	width: auto;
}

.menu-sub-title>ul>li>a>div>p {
	font-size: 12px;
	margin-top: 30%;
	color: var(--dark-gray);
}

.menu-sub-title>ul>li>a>div>span {
	font-size: 12px;
	color: var(--accent-color);
}

.menu-sub-wrapper>ul>li:hover>.menu-sub-title>ul {
	display: block;
}

/* 左中右布局容器 */
.third {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 500px; /* 固定高度为500像素 */
}
.third img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain; /* 保持图片比例，完整显示在容器内 */
}

.center {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 90vw; /* 容器宽度为视口宽度的 90% */
	font-size: 0;
}

.center:hover {
	border: 1px solid var(--accent-color);
	box-shadow: 10px 10px 10px -10px var(--accent-color);
	transform: translateY(10px);
}



/* 左右布局 */
.container-wrapper {
	position: relative;
	margin-top: -200px;
}

.container {
	height: 510px;
}

.title {
	width: 100%;
	font-size: 16px;
	margin-bottom: 10px;
}

.title:before {
	content: "";
	border: 2px solid var(--accent-color);
	margin-right: 5px;
}

.container-left {
	float: left;
	height: 100%;
	width: 20%;
	margin-top: 10px;
	box-sizing: border-box;
	background-color: var(--dark-gray);
}

.container-left>a>img {
	height: auto;
	width: 100%;
}

.container-left:hover {
	box-shadow: 10px 10px 2px -10px var(--accent-color);
	transform: translateY(10px);
}

.container-center {
	float: left;
	height: 100%;
	width: 80%;
	font-size: 0;
	text-align: justify;
	margin-top: 10px;
}

.container-center>div {
	display: inline-block;
	height: calc((100% - 10px) / 2);
	width: calc((100% - 30px) / 3);
	margin-bottom: 10px;
	margin-left: 10px;
	box-sizing: border-box;
	border:        1px solid transparent;
	text-align: center;
	transition: all 0.2s;
	background-color: #fff;
}

.container-center::after {
	content: "";
	display: inline-block;
	width: 100%;
}

.container-center a {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.container-center img {
	width: 60%;
	height: auto;
}

.container-center h5 {
	font-size: 12px;
	color: var(--dark-gray);
	margin-bottom: 10px;
}

.container-center span {
	color: var(--accent-color);
	font-size: 10px;
}

.container-center>div:hover {
	transform: translateY(-10px);
	box-shadow: 10px 10px 2px -10px var(--accent-color);
}

.container-second {
	margin-top: 60px;
	height: 510px;
}

.title {
	width: 100%;
	font-size: 16px;
	margin-bottom: 10px;
}

.title:before {
	content: "";
	border: 2px solid var(--accent-color);
	margin-right: 5px;
}

.container-second-left {
	float: left;
	height: 100%;
	width: 20%;
	margin-top: 10px;
	box-sizing: border-box;
	background-color: var(--dark-gray);
}

.container-second-left>a>img {
	height: auto;
	width: 100%;
}

.container-second-left:hover {
	transform: translateY(10px);
	box-shadow: 10px 10px 2px -10px var(--accent-color);
}

.container-second-center {
	float: left;
	height: 100%;
	width: 80%;
	font-size: 0;
	text-align: justify;
	margin-top: 10px;
}

.container-second-center>div {
	display: inline-block;
	height: calc((100% - 10px) / 2);
	width: calc((100% - 30px) / 3);
	margin-bottom: 10px;
	margin-left: 10px;
	box-sizing: border-box;
	text-align: center;
	transition: all 0.2s;
	background-color: #fff;
}

.container-second-center::after {
	content: "";
	display: inline-block;
	width: 100%;
}

.container-second-center img {
	width: 60%;
	height: auto;
}

.container-second-center a {
	height: 100%;
	width: 100%;
	text-decoration: none;
}

.container-second-center p {
	font-size: 12px;
	color: var(--dark-gray);
	margin-bottom: 10px;
}

.container-second-center span {
	color: var(--accent-color);
	font-size: 10px;
}

.container-second-center>div:hover {
	transform: translateY(10px);
	box-shadow: 10px 10px 2px -10px var(--accent-color);
}

/* 左边边栏部分 */
ul.tab-title {
	position: fixed;
	bottom: 50%;
	transform: translateX(-50%);
	left: 40px;
	width: 40px;
	height: 200px;
}

ul.tab-title>li {
	width: 100%;
	height: 25%;
	text-align: center;
	transition: all 0.2s;
	border-bottom: none;
}

ul.tab-title>li>a {
	display: block;
	text-decoration: none;
	padding: 10px 0;
	margin: 20px 0;
	width: 100%;
	font-size: 24px;
	color: var(--dark-gray);
}

ul.tab-title>li.active {
	font-weight: 600;
}

/* 最下面的部分 */
.bottom-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
	margin-top: 30px;
	padding: 30px 0;
	border-top: 1px solid var(--medium-gray);
	background-color: var(--light-gray);
}

.bottom {
	margin-top: 0;
}

.bottom h4 {
	font-size: 14px;
	margin-bottom: 10px;
	color: var(--dark-gray);
	font-weight: 600;
}

.bottom a {
	text-decoration: none;
	color: var(--dark-gray);
	font-size: 12px;
	transition: color 0.3s ease;
}

.bottom a:hover {
	color: var(--accent-color);
	text-decoration: underline;
}

.bottom li {
	margin-bottom: 5px;
}

.bottom img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bottom p {
	margin-top: 10px;
	font-size: 10px;
	color: #b0b0b0;
}

.bottom button {
	width: 100px;
	height: 40px;
	color: var(--dark-gray);
	margin-top: 10px;
	font-size: 12px;
	background-color: var(--light-gray);
	border: 1px solid var(--medium-gray);
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.bottom button:hover {
	background-color: var(--medium-gray);
}

.bottom-last {
	margin-left: 60px;
	margin-right: 0;
}

.ricker {
	width: 20px;
	height: 100px;
	position: fixed;
	bottom: 10px;
	right: 10px;
}

.ricker>a {
	color: var(--dark-gray);
	text-decoration: none;
}

.foot {
	font-size: 0;
	margin-top: 20px;
}

iframe {
	width: 100%;
	height: 60px;
}
/* 定义自定义属性 */
:root {
	--write: #ffffff; /* 这里假设 --write 代表白色 */
	--accent-color: #ff6600; /* 这里假设 --accent-color 代表橙色 */
}

/* 修改 .ricker>a:hover 样式 */
.ricker>a:hover {
	color: var(--write);
	background-color: var(--accent-color);
	border-color: var(--accent-color);
}

/* 修改 #pagebox 样式 */
#pagebox {
	text-align: center;  /* 子元素水平居中 */
}

/* 修改 layui-laypage 样式 */
.layui-laypage {
	float: none !important;
	display: inline-block;
}

/* 商品列表容器，使用 Flexbox 布局 */
.product-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px; /* 商品之间的间距 */
}

/* 单个商品项 */
.product-item {
	box-sizing: border-box;
}

/* 商品图片样式，调整图片大小 */
.product-item img {
	width: 100%; /* 调整图片宽度为容器的 80%，可根据实际情况修改 */
	height: 100%; /* 保持图片比例 */
	margin: 0 auto; /* 图片水平居中 */
	display: block; /* 使图片成为块级元素，以便应用 margin: 0 auto */
}

/* 商品标题样式 */
.product-item h5 {
	font-size: 16px;
	margin: 10px 0;
}

/* 商品描述样式 */
.product-item p {
	font-size: 14px;
	color: #666;
	margin-bottom: 10px;
}

/* 商品价格样式 */
.product-item span {
	font-size: 12px;
	font-weight: bold;
	color: var(--accent-color); /* 使用自定义属性设置价格颜色 */
}

.product-item .buy-btn:hover {
	background-color: #cc5200; /* 鼠标悬停时按钮背景色加深 */
}
/* 增大每个 productCategory 之间的上下间距 */
#product-container .container {
	margin-top: 200px;
	margin-bottom: 60px;
}
.menu-sub-wrapper > li.parent-category {
	display: inline-block;
	position: relative;
	padding: 10px 20px;
}

/* 子分类垂直下拉 */
.sub-category-list {
	display: none;
	position: absolute;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.parent-category:hover .sub-category-list {
	display: block;
}




